export const routes = [
  { title: "登录", path: "/", component: "@/pages/Login" },
  { path: "/login", component: "@/pages/Login" },
  {
    path: "/home",
    component: "@/layouts/Home",
    // 把验证权限的逻辑，写到wrappers罗列的文件里面。 对 /home和他的子路由都做一个验证。
    wrappers: ["@/warppers/auth"], // 可以写多个文件
    routes: [
      { title: "关于企业", path: "about", component: "@/pages/About" },
      { title: "医生列表", path: "doctors", component: "@/pages/Doctors" },
      // 默认子路由
      { path: "", index: true, component: "@/pages/Doctors" },
    ],
  },
  { path: "*", component: "@/pages/Page404" },
];
